import { setItem,removeItem } from "../utils/sessionStorage";

const mutations = {
    setToken(state, value) {
        state.token = value
        setItem("token", value)
    },
    removeToken(state) {
        state.token = '';
        removeItem('token');
    },
    setUserInfo(state,value) {
        state.userInfo=value
    },

    setMenuList(state,value) {
        state.menuList=value
    },

    clearAllInfo(state) {
        state.token = '';
        removeItem('token')
        state.userInfo= null
        state.setMenuList=[]        
    }



}


export default mutations




